<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">
    <thead>
    <tr>
        <th style="text-align: center">姓名</th>
        <th style="text-align: center">医院</th>
        <th style="text-align: center">科室</th>
        <th style="text-align: center">职称</th>
        <th style="text-align: center">类别</th>
        <th style="text-align: center">状态</th>
        <th style="text-align: center">用户可见</th>
        <th style="text-align: center">钱包</th>
        <th style="text-align: center">接单类型</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
<#if (stuffList?size>0) >
    <#list  stuffList as stuff>
        <tbody>
        <tr>

            <!--医生姓名-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.stuffName)??>
                    <a href="${basePath}/stuff/ajaxQueryStuffDetail.action?stuffID=${(stuff.stuffid)}">${stuff.stuffName}</a>
                </#if>
            </td>

            <!--医院-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.hospitalName)??>
				    ${stuff.hospitalName}
				</#if>
            </td>

            <!--科室-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.departmentName)??>
                  ${stuff.departmentName}
                </#if>
            </td>


            <!--职称-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.stuffTitle)??>
                  ${stuff.stuffTitle}
                </#if>
            </td>
            <!--类型-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.typeName)??>
                  ${stuff.typeName}
                </#if>
            </td>

            <!--状态-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.isUsedFlag)??>
                    <#if (stuff.isUsedFlag)==0>
                        启用
                    <#else>
                        未启用
                    </#if>
                <#else>
                    未启用
                </#if>
            </td>

            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.isUserRegisterVisible)??>
                    <#if (stuff.isUserRegisterVisible)==1>
                        可见
                    <#else>
                        不可见
                    </#if>
                <#else>
                    不可见
                </#if>
            </td>

            <!--钱包-->
            <td align="center" valign="top" nowrap="nowrap">
                钱包
            </td>

            <!--接单类型-->
            <td align="center" valign="top" nowrap="nowrap">
                <#if (stuff.registerWhere)??>
                  ${stuff.registerWhere}
                </#if>
            </td>

            <td align="center">
                <a href="${basePath}/goodsprice/ajaxQueryStuffGoodsPriceList.action?stuffID=${(stuff.stuffid)}">价格</a>|
                <a href="${basePath}/stuff/ajaxQueryStuffDetail.action?stuffID=${(stuff.stuffid)}">编辑</a>|
                <a href="javascript: var win=window.open('${basePath}/stuff/publishStuffList.action?stuffID=${stuff.stuffid}','_blank','toolbar=no,scrollbars=yes,top=150,left=400,width=600,height=400')" >分享发布</a>
            </td>
        </tr>
        </tbody>
    </#list>
</#if>


</table>
<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryStuff.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>

                </span>
            </div>
        </td>

    </tr>
</table>
